<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN"><HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1">
<META HTTP-EQUIV="Content-Style-Type" CONTENT="text/css">
<META NAME="GENERATOR" CONTENT="Adobe FrameMaker 7.0/HTML Export Filter">
<LINK REL="STYLESHEET" HREF="KDM_1.0_11_sourcepkg.css" CHARSET="ISO-8859-1" TYPE="text/css">
<TITLE> 11	Source Package</TITLE>
</HEAD>
<BODY BGCOLOR="#ffffff">
<DIV>
<H6 CLASS="Heading">
<A NAME="pgfId-998826"></A><A NAME="58728"></A>Source Package</H6>
</DIV>
<DIV>
<H3 CLASS="Heading1">
<A NAME="pgfId-1086553"></A>Overview</H3>
<P CLASS="Body">
<A NAME="pgfId-1088745"></A>The Source package defines a set of meta-model elements whose purpose is to represent the physical artifacts of the existing system, such as source files, images, configuration files, resource descriptions, etc. The Source package also represents traceability links between instances of KDM meta-elements and the regions of source code, which is represented by these meta-model elements. It represents the convergence between the KDM intermediate representation and the application source it represents.</P>
<P CLASS="Body">
<A NAME="pgfId-1088746"></A>The Source package offers two capabilities for linking instances of the KDM representation to the corresponding artifacts:</P>
<UL>
<LI CLASS="Bullet1">
<A NAME="pgfId-1088747"></A>Inlining the corresponding source code in the form of a &quot;snippet&quot; into KDM representation</LI>
<LI CLASS="Bullet1">
<A NAME="pgfId-1088748"></A>Linking a KDM element to a region of the source code within some physical artifact of the system being modeled</LI>
</UL>
<P CLASS="Body">
<A NAME="pgfId-1088749"></A>A given KDM representation can implement either of the approaches, both of them, or none. </P>
<P CLASS="Body">
<A NAME="pgfId-1088750"></A>When a KDM element is linked to the source code within a particular physical artifact of the existing system (regardless of the existence of the corresponding snippet), KDM offers further two options:</P>
<UL>
<LI CLASS="Bullet1">
<A NAME="pgfId-1088751"></A>The link can utilize the element of the KDM inventory model to identify the particular physical artifact, in which case the path to the artifact is determined through the Inventory Model.</LI>
<LI CLASS="Bullet1">
<A NAME="pgfId-1088752"></A>The link can be made stand-alone and explicitly specify the path to the artifact.</LI>
</UL>
<P CLASS="Body">
<A NAME="pgfId-1088754"></A>The nature of the &quot;source code&quot; represented by a particular KDM element is unspecified within KDM. In KDM, this is indicated by the &quot;language&quot; attribute.</P>
<P CLASS="Body">
<A NAME="pgfId-1089917"></A>The Source package defines the KDM Inventory model which corresponds in part to the engineering view of the existing software system. It is determined by the entire software development environment of the existing software system. As a general rule, in a given KDM instance, each instance of the inventory model represents a file, or a set of files. Exceptions to this rule are:</P>
<UL>
<LI CLASS="Bullet1">
<A NAME="pgfId-1089926"></A>InventoryModel element which is a part of the KDM instance infrastructure. This meta-model element is a container the instances of other inventory meta-model elements</LI>
<LI CLASS="Bullet1">
<A NAME="pgfId-1089927"></A>SourceRef and SourceRegion meta-elements which represent traceability links between other instances of KDM meta-model elements and source code of the existing software system.</LI>
</UL>
<P CLASS="Body">
<A NAME="pgfId-1089925"></A>Inventory meta-model elements are part of the KDM instance infrastructure because they determine the traceability mechanism between other KDM elements and the regions of the physical artifacts of the existing software system that they represent.</P>
</DIV>
<DIV>
<H3 CLASS="Heading1">
<A NAME="pgfId-1088758"></A><A NAME="_Toc119735834"></A><A NAME="_Toc119728780"></A><A NAME="_Toc131848182"></A>Organization of the Source Package</H3>
<P CLASS="Body">
<A NAME="pgfId-1088761"></A>The Source package consists of the following 5 class diagrams:</P>
<UL>
<LI CLASS="Bullet1">
<A NAME="pgfId-1088762"></A>InventoryModel</LI>
<LI CLASS="Bullet1">
<A NAME="pgfId-1089377"></A>InventoryInheritances</LI>
<LI CLASS="Bullet1">
<A NAME="pgfId-1089378"></A>InventoryRelations</LI>
<LI CLASS="Bullet1">
<A NAME="pgfId-1089376"></A>SourceRef </LI>
<LI CLASS="Bullet1">
<A NAME="pgfId-1089381"></A>ExtendedInventoryElements</LI>
</UL>
<P CLASS="Body">
<A NAME="pgfId-1088765"></A>The Source package depends on the following packages:</P>
<UL>
<LI CLASS="Bullet1">
<A NAME="pgfId-1088769"></A>Core</LI>
<LI CLASS="Bullet1">
<A NAME="pgfId-1088770"></A>kdm</LI>
</UL>
</DIV>
<DIV>
<H3 CLASS="Heading1">
<A NAME="pgfId-1089389"></A>InventoryModel class diagram</H3>
<P CLASS="Body">
<A NAME="pgfId-1089391"></A>InventoryModel class diagram defines meta-model elements which represent the artifacts of existing software system as &quot;first class citizens&quot; on the KDM instance. This model corresponds to the inventory of the artifacts. The InventoryModel class diagram follows the uniform pattern for KDM model to extend the KDM Framework with specific meta-model elements related to the engineering view of existing software systems. InventoryModel defines the following meta-model elements determined by the KDM model pattern:</P>
<UL>
<LI CLASS="Bullet1">
<A NAME="pgfId-1089942"></A>InventoryModel class</LI>
<LI CLASS="Bullet1">
<A NAME="pgfId-1089943"></A>AbstractInventoryElement class</LI>
<LI CLASS="Bullet1">
<A NAME="pgfId-1089944"></A>AbstractInventoryRelationship class</LI>
</UL>
<P CLASS="Body">
<A NAME="pgfId-1089945"></A>In addition, the InventoryModel class diagram defines a concrete KDM entity for each artifact, such a SourceFile, an Image, a ResourceDescription, a Configuration description, a BinaryFile and an ExecutableFile. These meta-model elements are subclasses of the common parent class InventoryItem. The Inventory model also provides a generic KDM container called InventoryContainer and two specific containers: Directory and Project. </P>
<P CLASS="Body">
<A NAME="pgfId-1089951"></A>The classes and associations of the InventoryModel are shown at <A HREF="KDM_1.0_11_sourcepkg.htm#59890" CLASS="XRef">See - InventoryModel Class Diagram.</A>.</P>
<P CLASS="Body">
<A NAME="pgfId-1089474"></A>&nbsp;</P>
<DIV>
<IMG SRC="KDM_1.0_11_sourcepkg-1.gif">
</DIV>
<DIV>
<H6 CLASS="FigureCaption1">
<A NAME="pgfId-1089475"></A><A NAME="59890"></A>- InventoryModel Class Diagram</H6>
</DIV>
<DIV>
<H4 CLASS="Heading2">
<A NAME="pgfId-1089563"></A><A NAME="_Toc131848344"></A>InventoryModel Class</H4>
<P CLASS="Body">
<A NAME="pgfId-1089564"></A>The InventoryModel is a specific KDM model which corresponds to the physical (engineering) view of the existing software system. InventoryModel is a container for the instances of IInventoryItems. InventoryModel corresponds to the inventory of the physical artifacts of the existing software system..</P>
<DIV>
<H6 CLASS="Heading4">
<A NAME="pgfId-1089565"></A>Superclass</H6>
<P CLASS="Body">
<A NAME="pgfId-1089566"></A>KDMModel</P>
</DIV>
<DIV>
<H6 CLASS="Heading4">
<A NAME="pgfId-1089567"></A>Associations</H6>
<P CLASS="Body">
<A NAME="pgfId-1089573"></A>&nbsp;</P>
<TABLE BORDER="1">
<TR>
<TD ROWSPAN="1" COLSPAN="1">
<H6 CLASS="TableText1">
<A NAME="pgfId-1089570"></A>inventoryElement:AbstractInventoryElement[0..*]</H6>
</TD>
<TD ROWSPAN="1" COLSPAN="1">
<P CLASS="TableText">
<A NAME="pgfId-1089572"></A>The set of inventory elements owned by the inventory model</P>
</TD>
</TR>
</TABLE>
</DIV>
<DIV>
<H6 CLASS="Heading4">
<A NAME="pgfId-1089574"></A>Constraints</H6>
</DIV>
<DIV>
<H6 CLASS="Heading4">
<A NAME="pgfId-1089575"></A>Semantics</H6>
<P CLASS="paragraph">
<A NAME="pgfId-1089957"></A>InventoryModel is a container for instances of inventory elements. It is the implementer's responsibility to arrange inventory elements into one or more inventory models. KDM import tools should not make any assumptions about the organization of inventory items into inventory models.</P>
</DIV>
</DIV>
<DIV>
<H4 CLASS="Heading2">
<A NAME="pgfId-1089577"></A><A NAME="_Toc131848345"></A>AbstractInventoryElement Class (abstract)</H4>
<P CLASS="Body">
<A NAME="pgfId-1089578"></A>The AbstractInventoryElement is the abstract parent class for all inventory entities. </P>
<DIV>
<H6 CLASS="Heading4">
<A NAME="pgfId-1089579"></A>Superclass</H6>
<P CLASS="Body">
<A NAME="pgfId-1089580"></A>KDMEntity</P>
</DIV>
<DIV>
<H6 CLASS="Heading4">
<A NAME="pgfId-1089581"></A>Associations</H6>
<P CLASS="Body">
<A NAME="pgfId-1089595"></A>&nbsp;</P>
<TABLE BORDER="1">
<TR>
<TD ROWSPAN="1" COLSPAN="1">
<H6 CLASS="TableText1">
<A NAME="pgfId-1089592"></A>inventoryRelationship:AbstractInventoryRelationship[0..*]</H6>
</TD>
<TD ROWSPAN="1" COLSPAN="1">
<P CLASS="TableText">
<A NAME="pgfId-1089594"></A>The set of inventory relations owned by the inventory element</P>
</TD>
</TR>
</TABLE>
</DIV>
<DIV>
<H6 CLASS="Heading4">
<A NAME="pgfId-1089596"></A>Constraints</H6>
</DIV>
<DIV>
<H6 CLASS="Heading4">
<A NAME="pgfId-1089597"></A>Semantics</H6>
<P CLASS="paragraph">
<A NAME="pgfId-1089975"></A>From the meta-model perspective, this element is a common parent for all inventory entities. This element is abstract and can not occur in KDM instances. The name of the meta-model element can be used as the type constraint in stereotype definitions. Inventory package provides a concrete class InventoryElement with under specified semantics, which can be used as an extension point for defining new &quot;virtual&quot; inventory entities.</P>
</DIV>
</DIV>
<DIV>
<H4 CLASS="Heading2">
<A NAME="pgfId-1089976"></A>AbstractInventoryRelationship Class (abstract)</H4>
<P CLASS="Body">
<A NAME="pgfId-1089624"></A>The AbstractInventoryRelationship is the abstract parent class for all inventory relationships. </P>
<DIV>
<H6 CLASS="Heading4">
<A NAME="pgfId-1089625"></A>Superclass</H6>
<P CLASS="Body">
<A NAME="pgfId-1089626"></A>KDMRelationship</P>
</DIV>
<DIV>
<H6 CLASS="Heading4">
<A NAME="pgfId-1089634"></A>Constraints</H6>
</DIV>
<DIV>
<H6 CLASS="Heading4">
<A NAME="pgfId-1089635"></A>Semantics</H6>
<P CLASS="paragraph">
<A NAME="pgfId-1089966"></A>From the meta-model perspective, this element is a common parent for all inventory relationships. This element is abstract and can not occur in KDM instances. The name of the meta-model element can be used as the type constraint in stereotype definitions. Inventory package provides a concrete class InventoryRelationship with under specified semantics, which can be used as an extension point for defining new &quot;virtual&quot; inventory relationships.</P>
<P CLASS="Body">
<A NAME="pgfId-1089394"></A>&nbsp;</P>
</DIV>
</DIV>
<DIV>
<H4 CLASS="Heading2">
<A NAME="pgfId-1089395"></A>InventoryItem class (generic)</H4>
<P CLASS="Body">
<A NAME="pgfId-1089396"></A>InventoryItem is a generic meta-model element that represents any artifact of an existing software system. This class is further subclasses by several concrete meta-model elements with more precise semantics. However, InventoryItem can be used as an extended modeling element with a stereotype.</P>
<DIV>
<H6 CLASS="Heading4">
<A NAME="pgfId-1089543"></A>Superclass</H6>
<P CLASS="Body">
<A NAME="pgfId-1089544"></A>AbstractInventoryElement</P>
</DIV>
<DIV>
<H6 CLASS="Heading4">
<A NAME="pgfId-1089546"></A>Attributes</H6>
<P CLASS="Body">
<A NAME="pgfId-1089556"></A>&nbsp;</P>
<TABLE BORDER="1">
<TR>
<TD ROWSPAN="1" COLSPAN="1">
<H6 CLASS="TableText1">
<A NAME="pgfId-1089549"></A>version:String</H6>
</TD>
<TD ROWSPAN="1" COLSPAN="1">
<P CLASS="TableText">
<A NAME="pgfId-1089551"></A>Provides the ability to track version or revision numbers. </P>
</TD>
</TR>
<TR>
<TD ROWSPAN="1" COLSPAN="1">
<H6 CLASS="TableText1">
<A NAME="pgfId-1089553"></A>path:String</H6>
</TD>
<TD ROWSPAN="1" COLSPAN="1">
<P CLASS="TableText">
<A NAME="pgfId-1089555"></A>Location of the build resource.</P>
</TD>
</TR>
</TABLE>
<P CLASS="Body">
<A NAME="pgfId-1089557"></A>&nbsp;</P>
</DIV>
<DIV>
<H6 CLASS="Heading4">
<A NAME="pgfId-1089558"></A>Semantics</H6>
<P CLASS="Body">
<A NAME="pgfId-1089538"></A>It is the implementer's responsibility to provide a mapping from concrete types of the physical artifacts involved in the engineering of the existing software system into concrete subclasses of the InventoryItem. It is the implementer's responsibility to map each artifact of the existing software system to some instance of KDM InventoryItem.</P>
</DIV>
</DIV>
<DIV>
<H4 CLASS="Heading2">
<A NAME="pgfId-1089508"></A><A NAME="_Toc131848353"></A>SourceFile Class</H4>
<P CLASS="Body">
<A NAME="pgfId-1089509"></A>The SourceFile class represents source files. This meta-model element is the key part of the traceability mechanism of KDM whose purpose is to provide links between code elements and their physical implementations using the SourceRegion mechanism from the Source package. </P>
<P CLASS="Body">
<A NAME="pgfId-1090146"></A>Instances of the SourceRegion meta-model element refer to certain regions of source files to identify the original representation corresponding to a certain KDM element. In order to achieve interoperability between KDM tools that take advantage of the traceability links between the KDM elements and the regions of existing software system artifacts, KDM specification explicitly defines semantics of source files.</P>
<DIV>
<H6 CLASS="Heading4">
<A NAME="pgfId-1089510"></A>Superclass</H6>
<P CLASS="Body">
<A NAME="pgfId-1089511"></A>InventoryItem</P>
</DIV>
<DIV>
<H6 CLASS="Heading4">
<A NAME="pgfId-1089512"></A>Attributes</H6>
<P CLASS="Body">
<A NAME="pgfId-1089522"></A>&nbsp;</P>
<TABLE BORDER="1">
<TR>
<TD ROWSPAN="1" COLSPAN="1">
<H6 CLASS="TableText1">
<A NAME="pgfId-1089515"></A>language:String</H6>
</TD>
<TD ROWSPAN="1" COLSPAN="1">
<P CLASS="TableText">
<A NAME="pgfId-1089517"></A>Indicates the language of the source file.</P>
</TD>
</TR>
<TR>
<TD ROWSPAN="1" COLSPAN="1">
<H6 CLASS="TableText1">
<A NAME="pgfId-1089519"></A>encoding:String</H6>
</TD>
<TD ROWSPAN="1" COLSPAN="1">
<P CLASS="TableText">
<A NAME="pgfId-1089521"></A>an optional attribute that represents the encoding of the characters in the file</P>
</TD>
</TR>
</TABLE>
</DIV>
<DIV>
<H6 CLASS="Heading4">
<A NAME="pgfId-1089523"></A>Semantics</H6>
<P CLASS="Body">
<A NAME="pgfId-1089986"></A>KDM assumes that a source file is a sequence of lines, identified by a linenumber. Each line is a sequence of characters, identified by a position within the line. Whitespace characters like tabulation are considered to be a single character. The &quot;end of line&quot; character is not considered to be part of the line.</P>
<P CLASS="paragraph">
<A NAME="pgfId-1089524"></A>KDM tools may use the information from the artifacts of existing software system, accessible through the SourceRegion mechanism. It is recognized that different encodings are used around the world, and it may be desired for KDM processors to read code snippets from the files that use them. The requirement for KDM tools is to read information in UTF-8.</P>
<P CLASS="paragraph">
<A NAME="pgfId-1089525"></A>Specification of encoding is aligned with XML specification from W3C. Each artifact of an existing system may use a different encoding for its characters. The default encoding for SourceFile is &quot;UTF-8&quot;. Encodings other that UTF-8 should be explicitly specified in the optional encoding attribute of the SourceFile using a standard encoding label. For example, &quot;UTF-16&quot;, &quot;ISO-10646-UCS-2&quot;, &quot;ISO-8859-2&quot;, ISO-2022-JP&quot;, &quot;Shift_JIS&quot;, and &quot;EUC-JP&quot;, etc. Encoding of the characters in the SourceFile should be taken into account by KDM consumer tools that make use of the information in the source file, through the mechanism of the SourceRegion.</P>
<P CLASS="paragraph">
<A NAME="pgfId-1089526"></A>&nbsp;</P>
</DIV>
</DIV>
<DIV>
<H4 CLASS="Heading2">
<A NAME="pgfId-1089531"></A><A NAME="_Toc131848358"></A>Image Class</H4>
<P CLASS="Body">
<A NAME="pgfId-1089532"></A>The Image is used to represent image files. </P>
<DIV>
<H6 CLASS="Heading4">
<A NAME="pgfId-1089533"></A>Superclass</H6>
<P CLASS="Body">
<A NAME="pgfId-1089534"></A>InventoryItem</P>
</DIV>
<DIV>
<H6 CLASS="Heading4">
<A NAME="pgfId-1089535"></A>Semantics</H6>
</DIV>
</DIV>
<DIV>
<H4 CLASS="Heading2">
<A NAME="pgfId-1089659"></A>Configuration Class</H4>
<P CLASS="Body">
<A NAME="pgfId-1089660"></A>The Configuration is used to represent various configuration files. </P>
<DIV>
<H6 CLASS="Heading4">
<A NAME="pgfId-1089661"></A>Superclass</H6>
<P CLASS="Body">
<A NAME="pgfId-1089662"></A>InventoryItem</P>
</DIV>
<DIV>
<H6 CLASS="Heading4">
<A NAME="pgfId-1089663"></A>Semantics</H6>
</DIV>
</DIV>
<DIV>
<H4 CLASS="Heading2">
<A NAME="pgfId-1089669"></A>ResourceDescription Class</H4>
<P CLASS="Body">
<A NAME="pgfId-1089670"></A>The ResourceDescription is used to represent resource description files. </P>
<DIV>
<H6 CLASS="Heading4">
<A NAME="pgfId-1089671"></A>Superclass</H6>
<P CLASS="Body">
<A NAME="pgfId-1089672"></A>InventoryItem</P>
</DIV>
<DIV>
<H6 CLASS="Heading4">
<A NAME="pgfId-1089673"></A>Semantics</H6>
</DIV>
</DIV>
<DIV>
<H4 CLASS="Heading2">
<A NAME="pgfId-1089689"></A>BinaryFile Class</H4>
<P CLASS="Body">
<A NAME="pgfId-1089690"></A>The BinaryFile is used to represent binary files. </P>
<DIV>
<H6 CLASS="Heading4">
<A NAME="pgfId-1089691"></A>Superclass</H6>
<P CLASS="Body">
<A NAME="pgfId-1089692"></A>InventoryItem</P>
</DIV>
<DIV>
<H6 CLASS="Heading4">
<A NAME="pgfId-1089693"></A>Semantics</H6>
</DIV>
</DIV>
<DIV>
<H4 CLASS="Heading2">
<A NAME="pgfId-1089697"></A>ExecutableFile Class</H4>
<P CLASS="Body">
<A NAME="pgfId-1089698"></A>The ExecutableFile is used to represent executable files for a particular platform. </P>
<DIV>
<H6 CLASS="Heading4">
<A NAME="pgfId-1089699"></A>Superclass</H6>
<P CLASS="Body">
<A NAME="pgfId-1089700"></A>InventoryItem</P>
</DIV>
<DIV>
<H6 CLASS="Heading4">
<A NAME="pgfId-1089701"></A>Semantics</H6>
<P CLASS="Body">
<A NAME="pgfId-1089505"></A>&nbsp;</P>
</DIV>
</DIV>
<DIV>
<H4 CLASS="Heading2">
<A NAME="pgfId-1089740"></A>InventoryContainer class (generic)</H4>
<P CLASS="Body">
<A NAME="pgfId-1089741"></A>The InventoryContainer meta-model element provides a container for instances of InventoryItem elements.</P>
<DIV>
<H6 CLASS="Heading4">
<A NAME="pgfId-1089742"></A>Superclass</H6>
<P CLASS="Body">
<A NAME="pgfId-1089743"></A>AbstractInventoryElement</P>
</DIV>
<DIV>
<H6 CLASS="Heading4">
<A NAME="pgfId-1089744"></A>Associations</H6>
<P CLASS="Body">
<A NAME="pgfId-1089750"></A>&nbsp;</P>
<TABLE BORDER="1">
<TR>
<TD ROWSPAN="1" COLSPAN="1">
<H6 CLASS="TableText1">
<A NAME="pgfId-1089747"></A>inventoryElement:AbstractInventoryElement[0..*]</H6>
</TD>
<TD ROWSPAN="1" COLSPAN="1">
<P CLASS="TableText">
<A NAME="pgfId-1089749"></A>The set of inventory elements owned by the container</P>
</TD>
</TR>
</TABLE>
</DIV>
<DIV>
<H6 CLASS="Heading4">
<A NAME="pgfId-1089751"></A>Constraints</H6>
<DIV>
<H6 CLASS="List1">
<A NAME="pgfId-1090155"></A>InventoryContainer should have at least one stereotype</H6>
</DIV>
</DIV>
<DIV>
<H6 CLASS="Heading4">
<A NAME="pgfId-1089752"></A>Semantics</H6>
<P CLASS="Body">
<A NAME="pgfId-1089737"></A>Concrete instances of the InventoryContainer element own other inventory elements (both inventory containers and individual inventory items). InventoryContainer instances represent tree-like container structures in which the leaf elements are individual IntentoryItem instances. Each InventoryContainer represents the entity set of InventoryItems owned by that container directly or indirectly.</P>
</DIV>
</DIV>
<DIV>
<H4 CLASS="Heading2">
<A NAME="pgfId-1089491"></A><A NAME="_Toc131848348"></A>Directory Class</H4>
<P CLASS="Body">
<A NAME="pgfId-1089492"></A>The Directory class represents directories as containers that own inventory items. </P>
<DIV>
<H6 CLASS="Heading4">
<A NAME="pgfId-1089493"></A>Superclass</H6>
<P CLASS="Body">
<A NAME="pgfId-1089494"></A>InventoryContainer</P>
</DIV>
<DIV>
<H6 CLASS="Heading4">
<A NAME="pgfId-1089495"></A>Attributes</H6>
<P CLASS="Body">
<A NAME="pgfId-1089501"></A>&nbsp;</P>
<TABLE BORDER="1">
<TR>
<TD ROWSPAN="1" COLSPAN="1">
<H6 CLASS="TableText1">
<A NAME="pgfId-1089498"></A>path:String</H6>
</TD>
<TD ROWSPAN="1" COLSPAN="1">
<P CLASS="TableText">
<A NAME="pgfId-1089500"></A>Location of the directory.</P>
</TD>
</TR>
</TABLE>
</DIV>
<DIV>
<H6 CLASS="Heading4">
<A NAME="pgfId-1089502"></A>Semantics</H6>
<P CLASS="Body">
<A NAME="pgfId-1089488"></A>Directory items represent physical containers for the artifacts of the existing software systems, for example directories in file systems. </P>
<P CLASS="Body">
<A NAME="pgfId-1090018"></A>In addition to the general semantics of the InventoryContainer, Directory ownership structure determines the full &quot;path&quot; for each individual inventory item in the following way. For a given Directory item, the full &quot;path&quot; to an inventory item, owned by this Directory directly or indirectly, is a sequence of strings, the first element of which is the &quot;path&quot; attribute of the Directory, and subsequent elements are name attributes of the directory items such that each directory item is owned by the previous directory item and that last directory item owns the inventory item. Any Project containers, involved in this ownership structure are ignored.</P>
</DIV>
</DIV>
<DIV>
<H4 CLASS="Heading2">
<A NAME="pgfId-1089715"></A>Project class</H4>
<P CLASS="Body">
<A NAME="pgfId-1089716"></A>The Project meta-model element represents an arbitrary logical container for inventory items. </P>
<DIV>
<H6 CLASS="Heading4">
<A NAME="pgfId-1089717"></A>Superclass</H6>
<P CLASS="Body">
<A NAME="pgfId-1089718"></A>InventoryContainer</P>
</DIV>
<DIV>
<H6 CLASS="Heading4">
<A NAME="pgfId-1090164"></A>Semantics</H6>
<P CLASS="Body">
<A NAME="pgfId-1090165"></A>Project is an arbitrary container for Inventory items. It can be used in combination with Directory containers.</P>
</DIV>
<DIV>
<H6 CLASS="Heading4">
<A NAME="pgfId-1090335"></A>Example</H6>
<P CLASS="example">
<A NAME="pgfId-1090341"></A>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;</P>
<P CLASS="example">
<A NAME="pgfId-1090342"></A>&lt;kdm:Segment xmi:version=&quot;2.1&quot; </P>
<P CLASS="example">
<A NAME="pgfId-1090378"></A>	xmlns:xmi=&quot;http://www.omg.org/XMI&quot; </P>
<P CLASS="example">
<A NAME="pgfId-1090379"></A>	xmlns:kdm=&quot;http://kdm.omg.org/kdm&quot; </P>
<P CLASS="example">
<A NAME="pgfId-1090380"></A>	xmlns:source=&quot;http://kdm.omg.org/source&quot; name=&quot;Inventory Example&quot;&gt;</P>
<P CLASS="example">
<A NAME="pgfId-1090343"></A>  &lt;model xmi:id=&quot;id.0&quot; xmi:type=&quot;source:InventoryModel&quot;&gt;</P>
<P CLASS="example">
<A NAME="pgfId-1090344"></A>    &lt;inventoryElement xmi:id=&quot;id.1&quot; xmi:type=&quot;source:SourceFile&quot; name=&quot;a.c&quot;&gt;</P>
<P CLASS="example">
<A NAME="pgfId-1090345"></A>      &lt;inventoryRelation xmi:id=&quot;id.2&quot; xmi:type=&quot;source:DependsOn&quot; to=&quot;id.5&quot; from=&quot;id.1&quot;/&gt;</P>
<P CLASS="example">
<A NAME="pgfId-1090346"></A>    &lt;/inventoryElement&gt;</P>
<P CLASS="example">
<A NAME="pgfId-1090347"></A>    &lt;inventoryElement xmi:id=&quot;id.3&quot; xmi:type=&quot;source:SourceFile&quot; name=&quot;b.c&quot;&gt;</P>
<P CLASS="example">
<A NAME="pgfId-1090348"></A>      &lt;inventoryRelation xmi:id=&quot;id.4&quot; xmi:type=&quot;source:DependsOn&quot; to=&quot;id.5&quot; from=&quot;id.3&quot;/&gt;</P>
<P CLASS="example">
<A NAME="pgfId-1090349"></A>    &lt;/inventoryElement&gt;</P>
<P CLASS="example">
<A NAME="pgfId-1090350"></A>    &lt;inventoryElement xmi:id=&quot;id.5&quot; xmi:type=&quot;source:SourceFile&quot; name=&quot;ab.h&quot;/&gt;</P>
<P CLASS="example">
<A NAME="pgfId-1090351"></A>    &lt;inventoryElement xmi:id=&quot;id.6&quot; xmi:type=&quot;source:Directory&quot;&gt;</P>
<P CLASS="example">
<A NAME="pgfId-1090352"></A>      &lt;inventoryElement xmi:id=&quot;id.7&quot; xmi:type=&quot;source:Image&quot;/&gt;</P>
<P CLASS="example">
<A NAME="pgfId-1090353"></A>      &lt;inventoryElement xmi:id=&quot;id.8&quot; xmi:type=&quot;source:Image&quot;/&gt;</P>
<P CLASS="example">
<A NAME="pgfId-1090354"></A>    &lt;/inventoryElement&gt;</P>
<P CLASS="example">
<A NAME="pgfId-1090355"></A>    &lt;inventoryElement xmi:id=&quot;id.9&quot; xmi:type=&quot;source:SourceFile&quot; name=&quot;makefile&quot;/&gt;</P>
<P CLASS="example">
<A NAME="pgfId-1090356"></A>    &lt;inventoryElement xmi:id=&quot;id.10&quot; xmi:type=&quot;source:ExecutableFile&quot; name=&quot;ab.exe&quot;/&gt;</P>
<P CLASS="example">
<A NAME="pgfId-1090357"></A>  &lt;/model&gt;</P>
<P CLASS="example">
<A NAME="pgfId-1090358"></A>&lt;/kdm:Segment&gt;</P>
<P CLASS="Body">
<A NAME="pgfId-1090336"></A>&nbsp;</P>
</DIV>
</DIV>
</DIV>
<DIV>
<H3 CLASS="Heading1">
<A NAME="pgfId-1090337"></A>InventoryInheritances class diagram</H3>
<P CLASS="Body">
<A NAME="pgfId-1090077"></A>InventoryInheritances class diagram is determined by the KDM model pattern. This diagram defines how the classes of the InventoryModel extend the KDM Framework.</P>
<P CLASS="Body">
<A NAME="pgfId-1090078"></A>The classes and associations for this diagram are shown at <A HREF="KDM_1.0_11_sourcepkg.htm#10373" CLASS="XRef">See - InventoryInheritances Class Diagram.</A>.</P>
<P CLASS="Body">
<A NAME="pgfId-1090083"></A>&nbsp;</P>
<DIV>
<IMG SRC="KDM_1.0_11_sourcepkg-2.gif">
</DIV>
<DIV>
<H6 CLASS="FigureCaption-">
<A NAME="pgfId-1090084"></A><A NAME="10373"></A>- InventoryInheritances Class Diagram</H6>
<P CLASS="Body">
<A NAME="pgfId-1090085"></A>&nbsp;</P>
</DIV>
</DIV>
<DIV>
<H3 CLASS="Heading1">
<A NAME="pgfId-1090021"></A>InventoryRelations class diagram</H3>
<P CLASS="Body">
<A NAME="pgfId-1089410"></A>InventoryRelations class diagram defines an optional relationship &quot;DependsOn&quot; between inventory elements.</P>
<P CLASS="Body">
<A NAME="pgfId-1089411"></A>The classes and associations for this diagram are shown at <A HREF="KDM_1.0_11_sourcepkg.htm#26416" CLASS="XRef">See - InventoryRelations Class Diagram.</A>.</P>
<P CLASS="Body">
<A NAME="pgfId-1089778"></A>&nbsp;</P>
<P CLASS="Body">
<A NAME="pgfId-1089782"></A>&nbsp;</P>
<DIV>
<IMG SRC="KDM_1.0_11_sourcepkg-3.gif">
</DIV>
<DIV>
<H6 CLASS="FigureCaption-">
<A NAME="pgfId-1089784"></A><A NAME="26416"></A>- InventoryRelations Class Diagram</H6>
<P CLASS="Body">
<A NAME="pgfId-1089412"></A>&nbsp;</P>
</DIV>
<DIV>
<H4 CLASS="Heading2">
<A NAME="pgfId-1089413"></A>DependsOn class</H4>
<P CLASS="Body">
<A NAME="pgfId-1089414"></A>DependsOn class is a meta-model element that represents an optional relationship between two inventory items, in which one inventory element requires another inventory element during one or more steps of the engineering process. </P>
<DIV>
<H6 CLASS="Heading4">
<A NAME="pgfId-1089416"></A>Associations:</H6>
<P CLASS="Body">
<A NAME="pgfId-1090261"></A>&nbsp;</P>
<TABLE BORDER="1">
<TR>
<TD ROWSPAN="1" COLSPAN="1">
<H6 CLASS="TableText1">
<A NAME="pgfId-1090265"></A>from:AbstractInventoryElement[1]</H6>
</TD>
<TD ROWSPAN="1" COLSPAN="1">
<P CLASS="TableText">
<A NAME="pgfId-1090267"></A>the base inventory item</P>
</TD>
</TR>
<TR>
<TD ROWSPAN="1" COLSPAN="1">
<H6 CLASS="TableText1">
<A NAME="pgfId-1090290"></A>to:AbstractInventoryElement[1]</H6>
</TD>
<TD ROWSPAN="1" COLSPAN="1">
<P CLASS="TableText">
<A NAME="pgfId-1090292"></A>another inventory item on which the base item depends</P>
</TD>
</TR>
</TABLE>
</DIV>
<DIV>
<H6 CLASS="Heading4">
<A NAME="pgfId-1089420"></A>Constraints:</H6>
<DIV>
<H6 CLASS="List1">
<A NAME="pgfId-1089421"></A>An inventory item should not depend on itself</H6>
</DIV>
</DIV>
<DIV>
<H6 CLASS="Heading4">
<A NAME="pgfId-1089423"></A>Semantics:</H6>
<P CLASS="Body">
<A NAME="pgfId-1089424"></A>The DependsOn relationship is optional. It is the implementer's responsibility to capture certain aspects knowledge of the engineering process in the form of &quot;DependsOn&quot; relations between inventory items. &quot;DependsOn&quot; relationship is part of the Infrastructure Layer, which is available to all KDM implementations at various compliance levels. KDM Build package which constitutes a separate L1.Build compliance point, defines more precise meta-model elements to represent the engineering view of the software system.</P>
<P CLASS="Body">
<A NAME="pgfId-1089425"></A>When the origin of the DependsOn relationship is an Inventory container, this means that all elements owned by this container (directly or indirectly) depend on the target of the relationship.</P>
<P CLASS="Body">
<A NAME="pgfId-1089426"></A>When the target of the &quot;DependsOn&quot; relationship is an Inventory container, this means that the one or more base inventory elements (the origin of the relationship) depends on all elements owned by the container (directly or indirectly).</P>
<P CLASS="Body">
<A NAME="pgfId-1089384"></A>&nbsp;</P>
</DIV>
</DIV>
</DIV>
<DIV>
<H3 CLASS="Heading1">
<A NAME="pgfId-1088775"></A><A NAME="_Toc119735835"></A><A NAME="_Toc119728781"></A><A NAME="_Toc131848183"></A>SourceRef Class Diagram</H3>
<P CLASS="Body">
<A NAME="pgfId-1088776"></A>The SourceRef class diagram defines a set of meta-model elements whose purpose is to provide traceability links between the elements of the KDM model of the existing software system and the physical artifacts of that system.</P>
<P CLASS="Body">
<A NAME="pgfId-1088100"></A>The class diagram shown in <A HREF="KDM_1.0_11_sourcepkg.htm#43253" CLASS="XRef">See - SourceRef Class Diagram.</A> captures these classes and their relations.</P>
<P CLASS="Body">
<A NAME="pgfId-1089806"></A>&nbsp;</P>
<DIV>
<IMG SRC="KDM_1.0_11_sourcepkg-4.gif">
</DIV>
<DIV>
<H6 CLASS="FigureCaption-">
<A NAME="pgfId-1089808"></A><A NAME="43253"></A>- SourceRef Class Diagram </H6>
<P CLASS="Body">
<A NAME="pgfId-1089795"></A>&nbsp;</P>
</DIV>
<DIV>
<H4 CLASS="Heading2">
<A NAME="pgfId-1088865"></A><A NAME="_Toc131848184"></A>SourceRef Class </H4>
<P CLASS="Body">
<A NAME="pgfId-1088866"></A>The SourceRef class represents a traceability link between a particular model element and the corresponding source code. </P>
<DIV>
<H6 CLASS="Heading4">
<A NAME="pgfId-1088868"></A>Superclass</H6>
<P CLASS="Body">
<A NAME="pgfId-1088869"></A>Element</P>
</DIV>
<DIV>
<H6 CLASS="Heading4">
<A NAME="pgfId-1088871"></A>Attributes</H6>
<P CLASS="Body">
<A NAME="pgfId-1088881"></A>&nbsp;</P>
<TABLE BORDER="1">
<TR>
<TD ROWSPAN="1" COLSPAN="1">
<H6 CLASS="TableText1">
<A NAME="pgfId-1088874"></A>language: String</H6>
</TD>
<TD ROWSPAN="1" COLSPAN="1">
<P CLASS="TableText">
<A NAME="pgfId-1088876"></A>Optional attribute. Indicates the source language of the snippet attribute.</P>
</TD>
</TR>
<TR>
<TD ROWSPAN="1" COLSPAN="1">
<H6 CLASS="TableText1">
<A NAME="pgfId-1088878"></A>snippet:String</H6>
</TD>
<TD ROWSPAN="1" COLSPAN="1">
<P CLASS="TableText">
<A NAME="pgfId-1088880"></A>Optional attribute. The source snippet for the given KDM element. The snippet may have some internal structure, for example XML tags corresponding to an abstract syntax tree of the code fragment. The interpretation of code snippets is outside the scope of the KDM.</P>
</TD>
</TR>
</TABLE>
</DIV>
<DIV>
<H6 CLASS="Heading4">
<A NAME="pgfId-1088882"></A>Constraints</H6>
<P CLASS="Body">
<A NAME="pgfId-1088883"></A>Language indicator has to be provided using at least one of the following methods:</P>
<UL>
<LI CLASS="Bullet1">
<A NAME="pgfId-1088884"></A>As the attribute of the SourceRef element.</LI>
<LI CLASS="Bullet1">
<A NAME="pgfId-1088885"></A>As the attribute of the SourceRegion element.</LI>
<LI CLASS="Bullet1">
<A NAME="pgfId-1088886"></A>As the attribute of the SourceFile element (part of the Inventory Model), accessible via the SourceRegion element.</LI>
</UL>
<P CLASS="Body">
<A NAME="pgfId-1088888"></A>If both the snippet and the language attributes of the SourceRef element are present, then the language attribute should describe the nature of the code snippet, in which case the nature of the source code region accessible through the SourceRegion may be different from the nature of the code snippet. If the snippet attribute is not present, then the language attribute of the SourceRef element overrides the language attribute of the SourceRegion element, which in turn overrides the one at the SourceFile element.</P>
</DIV>
<DIV>
<H6 CLASS="Heading4">
<A NAME="pgfId-1088891"></A>Semantics</H6>
<P CLASS="paragraph">
<A NAME="pgfId-1090028"></A>SourceRef meta-model element represents a traceability link between an instance of a KDM element to its original &quot;source&quot; representation as part of a physical artifact of the existing software system. KDM element that defines a traceability link to its original representation owns one or more SourceRef elements.</P>
<P CLASS="Body">
<A NAME="pgfId-1090031"></A>The Source package offers two capabilities for linking instances in KDM representation to their corresponding artifacts:</P>
<UL>
<LI CLASS="Bullet1">
<A NAME="pgfId-1090032"></A>Inlining the corresponding source code in the form of a &quot;snippet&quot; into KDM representation</LI>
<LI CLASS="Bullet1">
<A NAME="pgfId-1090033"></A>Linking a KDM element to a region of the source code within some physical artifact of the system being modeled</LI>
</UL>
<P CLASS="Body">
<A NAME="pgfId-1090034"></A>A given KDM representation can implement either of the approaches, both of them, or none. </P>
<P CLASS="Body">
<A NAME="pgfId-1090035"></A>When a KDM element is linked to the source code within a particular physical artifact of the existing system (regardless of the existence of the corresponding snippet), KDM offers further two options:</P>
<UL>
<LI CLASS="Bullet1">
<A NAME="pgfId-1090036"></A>The link can utilize the element of the KDM inventory model to identify the particular physical artifact, in which case the path to the artifact is determined through the Inventory Model.</LI>
<LI CLASS="Bullet1">
<A NAME="pgfId-1090037"></A>The link can be made stand-alone and explicitly specify the path to the artifact.</LI>
</UL>
<P CLASS="Body">
<A NAME="pgfId-1090197"></A>KDM element can define more than one SourceRef traceability links. The first SourceRef element is considered as the primary one. Other elements are considered secondary. Secondary traceability links may be used to represent alternative views of the code, links to other artifacts, such as design and documentation, represent generated code, or target code during the software modernization process. Usually, secondary SourceRef elements have distinct &quot;language&quot; attributes, so that KDM tools can select the appropriate representation to display. </P>
<P CLASS="Body">
<A NAME="pgfId-1090192"></A>It is the implementer's responsibility to provide adequate traceability links.</P>
</DIV>
</DIV>
<DIV>
<H4 CLASS="Heading2">
<A NAME="pgfId-1089079"></A><A NAME="_Toc131848189"></A>SourceRegion Class</H4>
<P CLASS="Body">
<A NAME="pgfId-1089080"></A>The SourceRegion class provides a pointer to a single region of source. The SourceRegion element provides the capability to precisely map model elements to a particular region of source which is not necessarily text. The nature of the source code within the physical artifact is indicated by the language attribute of the SourceRegion element or the language attribute of the SourceFile element. The language attribute of the SourceRegion element overrides that of the SourceFile element if both are present. </P>
<P CLASS="Body">
<A NAME="pgfId-1089081"></A>The source region is located within some physical artifact of the existing software system (a source file).</P>
<DIV>
<H6 CLASS="Heading4">
<A NAME="pgfId-1089083"></A>Superclass</H6>
<P CLASS="Body">
<A NAME="pgfId-1089084"></A>Element</P>
</DIV>
<DIV>
<H6 CLASS="Heading4">
<A NAME="pgfId-1089086"></A>Attributes</H6>
<P CLASS="Body">
<A NAME="pgfId-1089112"></A>&nbsp;</P>
<TABLE BORDER="1">
<TR>
<TD ROWSPAN="1" COLSPAN="1">
<H6 CLASS="TableText1">
<A NAME="pgfId-1089089"></A>startLine: Integer</H6>
</TD>
<TD ROWSPAN="1" COLSPAN="1">
<P CLASS="TableText">
<A NAME="pgfId-1089091"></A>The line number of the first character of the source region.</P>
</TD>
</TR>
<TR>
<TD ROWSPAN="1" COLSPAN="1">
<H6 CLASS="TableText1">
<A NAME="pgfId-1089093"></A>startPosition:Integer</H6>
</TD>
<TD ROWSPAN="1" COLSPAN="1">
<P CLASS="TableText">
<A NAME="pgfId-1089095"></A>Provides the position of the first character.of the source region. </P>
</TD>
</TR>
<TR>
<TD ROWSPAN="1" COLSPAN="1">
<H6 CLASS="TableText1">
<A NAME="pgfId-1089097"></A>endLine:Integer</H6>
</TD>
<TD ROWSPAN="1" COLSPAN="1">
<P CLASS="TableText">
<A NAME="pgfId-1089099"></A>The line number of the last character of the source region.</P>
</TD>
</TR>
<TR>
<TD ROWSPAN="1" COLSPAN="1">
<H6 CLASS="TableText1">
<A NAME="pgfId-1089101"></A>endPosition:Integer</H6>
</TD>
<TD ROWSPAN="1" COLSPAN="1">
<P CLASS="TableText">
<A NAME="pgfId-1089103"></A>The position of the last character of the source region.</P>
</TD>
</TR>
<TR>
<TD ROWSPAN="1" COLSPAN="1">
<H6 CLASS="TableText1">
<A NAME="pgfId-1089105"></A>language:String</H6>
</TD>
<TD ROWSPAN="1" COLSPAN="1">
<P CLASS="TableText">
<A NAME="pgfId-1089107"></A>Optional attribute. The language indicator of the source code for the given source region.</P>
</TD>
</TR>
<TR>
<TD ROWSPAN="1" COLSPAN="1">
<H6 CLASS="TableText1">
<A NAME="pgfId-1089109"></A>path:String</H6>
</TD>
<TD ROWSPAN="1" COLSPAN="1">
<P CLASS="TableText">
<A NAME="pgfId-1089111"></A>Optional attribute. The location of the physical artifact that contains the given source region.</P>
</TD>
</TR>
</TABLE>
</DIV>
<DIV>
<H6 CLASS="Heading4">
<A NAME="pgfId-1089115"></A>Associations</H6>
<P CLASS="Body">
<A NAME="pgfId-1089121"></A>&nbsp;</P>
<TABLE BORDER="1">
<TR>
<TD ROWSPAN="1" COLSPAN="1">
<H6 CLASS="TableText1">
<A NAME="pgfId-1089118"></A>file:SourceFile[0..1]</H6>
</TD>
<TD ROWSPAN="1" COLSPAN="1">
<P CLASS="TableText">
<A NAME="pgfId-1089120"></A>This association allows zero or more SourceRegion elements to be associated with a single SourceFile element of the Inventory Model.</P>
</TD>
</TR>
</TABLE>
</DIV>
<DIV>
<H6 CLASS="Heading4">
<A NAME="pgfId-1089123"></A>Constraints</H6>
<P CLASS="Body">
<A NAME="pgfId-1089124"></A>The location of the source file should be provided using at least one of the following methods:</P>
<UL>
<LI CLASS="Bullet1">
<A NAME="pgfId-1089125"></A>Path attribute of the SourceRegion element.</LI>
<LI CLASS="Bullet1">
<A NAME="pgfId-1089126"></A>Path attribute of the SourceFile element of the Inventory model.</LI>
</UL>
</DIV>
<DIV>
<H6 CLASS="Heading4">
<A NAME="pgfId-1089128"></A>Semantics</H6>
<P CLASS="Body">
<A NAME="pgfId-1089129"></A>KDM assumes that a source file is a sequence of lines, identified by a linenumber. Each line is a sequence of characters, identified by a position within the line. Whitespace characters like tabulation are considered to be a single character. The &quot;end of line&quot; character is not considered to be part of the line.</P>
<P CLASS="Body">
<A NAME="pgfId-1088857"></A>The path attribute should uniquely identify the physical artifact. The nature of the path attribute is outside of the scope of the KDM. For example, this can be a URI.</P>
<P CLASS="Body">
<A NAME="pgfId-1090205"></A>Individual SourceRef element may own multiple SourceRegion elements which represents a situation where there are multiple disjoint regions of source code that correspond to the given KDM element. </P>
</DIV>
</DIV>
</DIV>
<DIV>
<H3 CLASS="Heading1">
<A NAME="pgfId-1089824"></A>ExtenededInventoryElements Class Diagram</H3>
<P CLASS="Body">
<A NAME="pgfId-1089825"></A>The ExtendedInventoryElements class diagram defines two &quot;wildcard&quot; generic elements for the inventory model as determined by the KDM model pattern: a generic inventory entity and a generic inventory relationship.</P>
<P CLASS="Body">
<A NAME="pgfId-1089829"></A>The classes and associations of the ExtendedInventoryElements diagram are shown in <A HREF="KDM_1.0_11_sourcepkg.htm#81967" CLASS="XRef">See - ExtendedInventoryElements Class Diagram.</A>. </P>
<P CLASS="Body">
<A NAME="pgfId-1089833"></A>&nbsp;</P>
<DIV>
<IMG SRC="KDM_1.0_11_sourcepkg-5.gif">
</DIV>
<DIV>
<H6 CLASS="FigureCaption-">
<A NAME="pgfId-1089834"></A><A NAME="81967"></A>- ExtendedInventoryElements Class Diagram</H6>
</DIV>
<DIV>
<H4 CLASS="Heading2">
<A NAME="pgfId-1089835"></A>InventoryElement class (generic)</H4>
<P CLASS="Body">
<A NAME="pgfId-1089836"></A>The InventoryElement class is a generic meta-model element that can be used to define new &quot;virtual&quot; meta-model elements through the KDM light-weight extension mechanism.</P>
<DIV>
<H6 CLASS="Heading4">
<A NAME="pgfId-1089837"></A>Superclass</H6>
<P CLASS="Body">
<A NAME="pgfId-1089838"></A>AbstractInventoryElement</P>
</DIV>
<DIV>
<H6 CLASS="Heading4">
<A NAME="pgfId-1089839"></A>Constraints</H6>
<DIV>
<H6 CLASS="List1">
<A NAME="pgfId-1090056"></A>InventoryElement should have at least one stereotype</H6>
</DIV>
</DIV>
<DIV>
<H6 CLASS="Heading4">
<A NAME="pgfId-1089840"></A>Semantics</H6>
<P CLASS="paragraph">
<A NAME="pgfId-1090050"></A>An inventory entity with under specified semantics. It is a concrete class that can be used as the base element of a new &quot;virtual&quot; meta-model entity types of the inventory model. This is one of the KDM extension points which can integrate additional language-specific, application-specific or implementer-specific pieces of knowledge into the standard KDM representation.</P>
</DIV>
</DIV>
<DIV>
<H4 CLASS="Heading2">
<A NAME="pgfId-1089841"></A>InventoryRelationship class (generic)</H4>
<P CLASS="Body">
<A NAME="pgfId-1089842"></A>The InventoryRelationship class is a generic meta-model element that can be used to define new &quot;virtual&quot; inventory relationships through the KDM light-weight extension mechanism.</P>
<DIV>
<H6 CLASS="Heading4">
<A NAME="pgfId-1089843"></A>Superclass</H6>
<P CLASS="Body">
<A NAME="pgfId-1089844"></A>AbstractInventoryRelationship</P>
</DIV>
<DIV>
<H6 CLASS="Heading4">
<A NAME="pgfId-1089845"></A>Associations</H6>
<P CLASS="Body">
<A NAME="pgfId-1089855"></A>&nbsp;</P>
<TABLE BORDER="1">
<TR>
<TD ROWSPAN="1" COLSPAN="1">
<H6 CLASS="TableText1">
<A NAME="pgfId-1089848"></A>from:AbstractInventoryElement[1]</H6>
</TD>
<TD ROWSPAN="1" COLSPAN="1">
<P CLASS="TableText">
<A NAME="pgfId-1089850"></A>The inventory element origin endpoint of the relationship</P>
</TD>
</TR>
<TR>
<TD ROWSPAN="1" COLSPAN="1">
<H6 CLASS="TableText1">
<A NAME="pgfId-1089852"></A>to:KDMEntity[1]</H6>
</TD>
<TD ROWSPAN="1" COLSPAN="1">
<P CLASS="TableText">
<A NAME="pgfId-1089854"></A>the target of the relationship</P>
</TD>
</TR>
</TABLE>
</DIV>
<DIV>
<H6 CLASS="Heading4">
<A NAME="pgfId-1089856"></A>Constraints</H6>
<DIV>
<H6 CLASS="List1">
<A NAME="pgfId-1090060"></A>InventoryRelationship should have at least one stereotype</H6>
</DIV>
</DIV>
<DIV>
<H6 CLASS="Heading4">
<A NAME="pgfId-1089857"></A>Semantics</H6>
<P CLASS="paragraph">
<A NAME="pgfId-1089858"></A>An inventory relationship with under specified semantics. It is a concrete class that can be used as the base element of a new &quot;virtual&quot; meta-model relationship types of the inventory model. This is one of the KDM extension points which can integrate additional language-specific, application-specific or implementer-specific pieces of knowledge into the standard KDM representation.</P>
<P CLASS="Body">
<A NAME="pgfId-1089270"></A>&nbsp;</P>
<P CLASS="Body">
<A NAME="pgfId-1089060"></A>&nbsp;</P>
<P CLASS="Body">
<A NAME="pgfId-1089061"></A>&nbsp;</P>
<P CLASS="Body">
<A NAME="pgfId-1088609"></A>&nbsp;</P>
</DIV>
</DIV>
</DIV>
</BODY>
</HTML>
